package com.xiaoc.bulldozer.common.service.impl;

import java.util.List;
import java.util.Date;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.xiaoc.bulldozer.common.dao.CheckAccountMapper;
import com.xiaoc.bulldozer.common.dto.CheckAccountQueryDto;
import com.xiaoc.bulldozer.common.model.CheckAccount;
import com.xiaoc.bulldozer.common.service.CheckAccountService;

/**
 * CheckAccount Service 实现类
 * 
 * @author Danfo Yam
 * 
 * @date 2018-08-24 15:47:58
 */
@Service("checkAccountService")
public class CheckAccountServiceImpl implements CheckAccountService {

    @Resource
    private CheckAccountMapper checkAccountMapper;

    @Override
    public Integer getCheckAccountCountByCondition(CheckAccountQueryDto checkAccountQueryDto) {
        return checkAccountMapper.getCheckAccountCountByCondition(checkAccountQueryDto);
    }

    @Override
    public List<CheckAccount> getCheckAccountListByCondition(CheckAccountQueryDto checkAccountQueryDto) {
        checkAccountQueryDto.setPage(checkAccountQueryDto.getPage());
        return checkAccountMapper.getCheckAccountListByCondition(checkAccountQueryDto);
    }

    @Override
    public CheckAccount getCheckAccountById(Integer id) {
        return checkAccountMapper.getCheckAccountById(id);
    }

    @Override
    public List<CheckAccount> getAllCheckAccountList() {
        return checkAccountMapper.getAllCheckAccountList();
    }
    
    @Override
    public void save(CheckAccount checkAccount) {
        checkAccountMapper.save(checkAccount);
    }

    @Override
    public void update(CheckAccount checkAccount) {
        checkAccountMapper.update(checkAccount);
    }

    @Override
    public void deleteById(Integer id) {
        checkAccountMapper.deleteById(id);
    }

}
